package com.siyuanren.gcocp.input;

import java.io.*;

/**
 * Created by   anxing
 * Project_name myCourse
 * Path         com.woodstar.word
 * Date         2018/6/19
 * Time         18:10
 * Description
 */
public class main3 {
    public static void main(String[] args) throws Exception {
        File file = new File("word3.txt");
        BufferedReader reader = null;
        String line;

        Word3Parse wordParse = new Word3Parse();

//        System.out.print(Pattern.matches(".*(\\d+).*(\\b\\w*\\b).*", "120、 vert"));
        try {
            reader = new BufferedReader(new InputStreamReader(new FileInputStream(file),"utf-8"));
            int index = 1;
            while ((line = reader.readLine()) != null) {
                line = line.trim();
                index++;
                if(wordParse.parsePartFirt(line)) {
                    continue;
                }
                if(wordParse.parsePartTanslate(line)) {
                    continue;
                }
                if (wordParse.parseWord(line)) {
                    continue;
                }

                System.out.println(line + "<>-------------------------------------------------------------------can't handle");

            }

        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } finally {
            if (reader != null) {
                reader.close();
            }
        }
    }
}
